package cn.skyquant.quant4j.sdk.util.http;

import com.alibaba.fastjson.JSONObject;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Map;

public class DiorsunionHttp {

    public static final String realDomain = "diorsunion.com";
    public static final String http = "http://";
    public static final JSONObject get(String uristr) throws IOException, URISyntaxException {
        return HttpUtils.get(http + realDomain + uristr, null, null, null);
    }
    public static final JSONObject get(String uristr,Map<String,String> paramMap) throws IOException, URISyntaxException {
        return HttpUtils.get(http + realDomain + uristr, paramMap, null, null);
    }

    public static final JSONObject post(String uri, Map<String, String> paramMap) throws IOException {
        return HttpUtils.post(http + realDomain + uri, paramMap, null, null);

    }

    public static final JSONObject put(String uri, Map<String, String> paramMap) throws IOException {
        return HttpUtils.put(http + realDomain + uri, paramMap, null, null);
    }

    public static final JSONObject delete(String uri, Map<String, String> paramMap) throws IOException {
        return HttpUtils.delete(http + realDomain + uri, null, null);
    }
}
